<%#
name: Host - Statuses
snippet: false
template_inputs:
- name: hosts
  required: false
  input_type: user
  description: Limit the report only on hosts found by this search query. Keep empty
    for report on all available hosts.
  advanced: false
  value_type: search
  resource_type: Host
model: ReportTemplate
-%>
<%- report_headers 'Name', 'Global' -%>
<%- load_hosts(search: input('hosts'), includes: :host_statuses).each_record do |host| -%>
<%-   report_row({
        'Name': host.name,
        'Global': host.global_status
      }.merge(all_host_statuses_hash(host))) -%>
<%- end -%>
<%= report_render -%>
